{% extends "base.html" %}

{% block title %}SuperMain BBS{% endblock %}

{% block content %}
<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <p><b>{{ look_post.user.username }} </b> {{ look_post.post_date }} <small>地基</small></p>
        </div>
        <div class="panel-body">
            <p>{{ look_post.html_text|safe }}</p>
        </div>
    </div>
    {% for page in now_page %}
    <div class="panel panel-default">
        <div class="panel-heading">
            <p><b>{{ page.user.username }} </b> {{ page.post_date }} <small>{{ page.build_num }}楼</small></p>
        </div>
        <div class="panel-body">
            <p>{{ page.html_text|safe }}</p>
        </div>
    </div>
    {% empty %}
    <p>还没有任何人加入讨论！</p>
    {% endfor %}

    <nav aria-label="Page navigation">
        <ul class="pagination">
            {% if page_id == 1 %}
            <li class="disabled">
                <a href="#" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
                </a>
            </li>
            {% else %}
            <li>
                <a href="#" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
                </a>
            </li>
            {% endif %}
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
          <li>
            <a href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li>
        </ul>
      </nav>
    
</div>
{% endblock %}